provider Monitors PUT /api/0/organizations/{organization_id_or_slug}/detectors/
@utdk/sentry /api/0/organizations/{organization_id_or_slug}/detectors/
Mutate an Organization's Monitors
Bulk enable or disable an Organization's Monitors
organization_id_or_slug path required
The ID or slug of the organization the resource belongs to.
string
project query
The IDs of projects to filter by. `-1` means all available projects. For example, the following are valid parameters: - `/?project=1234&project=56789` - `/?project=-1`
array
query query
An optional search query for filtering monitors. Available fields are: - `name` - `type`: e.g. `error`, `metric_issue`, `issue_stream` - `assignee`: email, username, #team, me, none
string
id query
The ID of the monitor you'd like to query.
array

Try it

Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

mutateAnOrganizationSMonitors
PUT/api/0/organizations/{organization_id_or_slug}/detectors/
Bulk enable or disable an Organization's Monitors

Parameters

required

The ID or slug of the organization the resource belongs to.

The IDs of projects to filter by. `-1` means all available projects. For example, the following are valid parameters: - `/?project=1234&project=56789` - `/?project=-1`

An optional search query for filtering monitors. Available fields are: - `name` - `type`: e.g. `error`, `metric_issue`, `issue_stream` - `assignee`: email, username, #team, me, none

The ID of the monitor you'd like to query.

Input

required

Whether to enable or disable the monitors

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sentry from '@utdk/sentry';

await sentry.mutateAnOrganizationSMonitors()